package com.iyjhsoc.game.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("player_team")
public class PlayerTeamDO {

    public  PlayerTeamDO(){

    }

    public PlayerTeamDO(Long playerId, Long teamId, Integer isDelete, Integer isEntry, Integer isFirst, String position) {
        this.playerId = playerId;
        this.teamId = teamId;
        this.isDelete = isDelete;
        this.isEntry = isEntry;
        this.isFirst = isFirst;
        this.position = position;
    }

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long playerId;
    private Long teamId;
    @ApiModelProperty("是否删除")
    private Integer isDelete;
    @ApiModelProperty("是否退出")
    private Integer isEntry;
    @ApiModelProperty("是否首发")
    private Integer isFirst;
    @ApiModelProperty("位置")
    private String position;

}
